package com.richman.isn;

import com.richman.controller.DecreaseRatioClient;

public class ISNThread extends Thread {

	public long sleepTime = 30*1000;
	ISNManager hgmanager = null;
	
	
	public long lastUpdatetime = 0;
	
	boolean start = false;
	boolean loginNow = false;
	
	
	boolean bexit = false;
	
	public boolean getbexit() {
		return bexit;
	}

	public ISNThread(){		

	}
	
	
	@Override
    public void run() {

		try{

			while(DecreaseRatioClient.bStartEngine){
				try{

					
					DecreaseRatioClient.betCtrMng.keepISNonline();
					
					//SpecialServer.betCtrMng.updateisnBetLogData();
					
//					SpecialServer.betCtrMng.updatehgSpecialBetLogData();
//					
//					if(SpecialServer.betCtrMng!=null && System.currentTimeMillis() > lastUpdatetime + 10*1000) {
//						SpecialServer.betCtrMng.updateBetAdyTable();
//						lastUpdatetime = System.currentTimeMillis();
//					}
					
					Thread.sleep(500);
					
				}catch(Exception e){
					e.printStackTrace();
					Thread.sleep(2000);
				}
				

			}

			bexit = true;

		}catch(Exception e){
			e.printStackTrace();
		}	
	}
	
}
